import { defineStore } from './lalala/index.js'

export const useAuthStore = defineStore(() => {
    const id = null
    const name = null
    const exp = null
    const imgUrl = null
    const signature = null
    const likeCount = null
    const reportCount = null
    const learnTime = null
 


    
    const updateInfo = function(obj) {
        for(let k in obj) {
            if (this.hasOwnProperty(k)) {
                this[k] = obj[k]
            }
        }
    }



    return {
        id, name, exp, imgUrl, signature, likeCount, reportCount, learnTime,
        updateInfo
    }
})